<?php 
  // backup with the file format propertymaxpro_YYYYMMDDHHMMSS.sql
  header ( "Content-Disposition: attachment; filename=propertymaxpro_" . 
           date ( "YmdHis" ) . ".sql" );

  passthru ( $mysqldump . " -a -c -q -u" . $DBusername . " -p" . $DBpassword .
             " -h " . $server . " " . $database );

  exit ();
?>
